
var lang1_select;
var lang2_select; 

function testMatch() {

 console.log('testing if ' + lang1_select.value + ' matches ' + lang2_select.value + ': ' + (lang1_select.value == lang2_select.value));
 if (lang1_select.value == lang2_select.value) {
  
  lang1_select.remove(lang1_select.selectedIndex);
  lang2_select.remove(lang2_select.selectedIndex);
 
 }

}

window.onload = function () {

 lang1_select = document.getElementById('match_lang1');
 lang2_select = document.getElementById('match_lang2');

 lang1_select.onclick = lang2_select.onclick = testMatch;

};
